package com.example.testapplication;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.Toast;

import com.example.testapplication.adapter.RecyclerCombineAdapter;
import com.example.testapplication.adapter.RecyclerGridAdapter;
import com.example.testapplication.bean.Goods;
import com.example.testapplication.constant.ImageList;
import com.example.testapplication.util.MenuUtil;
import com.example.testapplication.util.Utils;
import com.example.testapplication.widget.BannerPager;
import com.example.testapplication.widget.SpacesItemDecoration;

// DepartmentCartActivity

public class DepartmentCartActivity extends AppCompatActivity {
    private final static String TAG = "DepartmentHomeActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_department_cart);
        Toolbar tl_head = findViewById(R.id.tl_head11);
        // 使用tl_head替换系统自带的ActionBar
        setSupportActionBar(tl_head);
        // 给tl_head设置导航图标的点击监听器
        // setNavigationOnClickListener必须放到setSupportActionBar之后，不然不起作用

        tl_head.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });

    }


}